MckaysPack:CreateEnt("Flyable Prometheus") --add Ent to list of MckaysEnts MUST BE FIRST
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName	= "Prometheus"
ENT.Author	= "Col. Shepard and Meeces2911 for Lua, foeaxe for Model"
ENT.Category 	= "Stargate"
ENT.Contact	= "http://www.garrysmod.org/downloads/?a=view&id=20689 (Model)"
ENT.Purpose	= "X-303 from stargate"
ENT.Instructions= "Fly, add wire to the device and see more functions"
ENT.RenderGroup = RENDERGROUP_OPAQUE; -- Must be OPAQUE. Otherwise, stuff like the flashlights sometimes suddenly disappear.

if(file.Exists("../models/modularpack/prometheus.mdl")) then
	ENT.Spawnable	= true
	ENT.AdminSpawnable = true
else
	ENT.Spawnable	= false
	ENT.AdminSpawnable = false
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:SetEffect( name )
	self.Entity:SetNetworkedString( "Effect", name )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:GetEffect( name )
	return self.Entity:GetNetworkedString( "Effect", "" )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:SetOffset( v )
	self.Entity:SetNetworkedVector( "Offset", v, true )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:GetOffset( name )
	return self.Entity:GetNetworkedVector( "Offset" )
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:SetOn( boolon )
	self.Entity:SetNetworkedBool( "On", boolon, true )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:IsOn( name )
	return self.Entity:GetNetworkedBool( "On", false )
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:SetAfterBurner( boolon )
	self.Entity:SetNetworkedBool( "AB", boolon, true )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:GetAfterBurner( name )
	return self.Entity:GetNetworkedBool( "AB", false )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:SetMovingForward( boolon )
	self.Entity:SetNetworkedBool( "MovingF", boolon, true )
end

/*---------------------------------------------------------
---------------------------------------------------------*/
function ENT:GetMovingForward( name )
	return self.Entity:GetNetworkedBool( "MovingF", false )
end
